package cn.jinjimi.app.entity.AppConfig;

import cn.jinjimi.base.preference.PreferenceManager;
import cn.jinjimi.base.util.GsonUtils;
import cn.jinjimi.base.util.StringUtils;
import cn.jinjimi.app.bean.SharePrefKeys;

/**
 * Created by linlongjie on 17/8/3.
 */

public class HomeNewAdv {
    public String advertisment;

    public static HomeNewAdv getHomeNewAdv(){
        HomeNewAdv homeNewAdv = null;
        String data = PreferenceManager.getStringData(SharePrefKeys.PREF_HOME_NEW_ADV_STRING);
        if(StringUtils.isNotEmpty(data)){
            homeNewAdv = GsonUtils.fromJson(data, HomeNewAdv.class);
        }
        return homeNewAdv;
    }
}
